<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <title>Home</title>
  <link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="all" />
  <script src="js/jquery.min.js"></script>
  <link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
  <script src="js/modernizr.custom.js"></script>
  <link rel="stylesheet" type="text/css" href="css/component.css" />
</head>
<body>
<!--header-->
<div class="header" >


  <div class="header-top">
    <div class="container">
      <div class="head-top">
        <div class="logo">

          <h1>游戏中心</h1>

        </div>
        <div class="top-nav">
          <span class="menu"><img src="images/menu.png" alt=""> </span>

          <ul>
            <li class="active"><a class="color1" href="/">首页</a></li>
            <li><a class="color2" href="/GameList">游戏</a></li>
            <li><a class="color4" href="/NewsList">新闻</a></li>
            <li><a class="color6" href="contact.html">联系我们</a></li>
            <div class="clearfix"> </div>
          </ul>

          <!--script-->
          <script>
            $("span.menu").click(function(){
              $(".top-nav ul").slideToggle(500, function(){
              });
            });
          </script>

        </div>

        <div class="clearfix"> </div>
      </div>
    </div>
  </div>
</div>

<!--content-->
<div class="content">
  <div class="container" style="    background: url(images/gn.jpg);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    height: 600px;">
    <div class="content-top">
      <div class="wrap">
        <div class="main">
          <h1 style="    margin-top: 85px;
    margin-left: 400px;">欢迎来到猜数游戏！</h1>
          <p th:text="'猜数次数: ' + ${guessCount}" style="padding:10px 20px;margin-top: 50px;">猜数次数: 0</p>
          <p th:utext="${resultMessage}" style="padding:10px 20px;">输入一个1-100之间的数字</p>
          <form method="post" action="/gnplay">
          <div style="margin: 20px auto;width: 140px;">
            <input type="number" name="guess" min="1" max="100" required/>
            <button type="submit">确定</button>
          </div>
          </form>
        </div>
      </div>
    </div>

  </div>
</div>
  <!---->
  <div class="footer">
    <p class="footer-class">Copyright &copy; 2025.Sunys</p>
  </div>

</body>
</html>